//
//  AboutViewController.m
//  baohebao
//
//  Created by 贾政阳 on 12-4-6.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "AboutViewController.h"
#import "CommTools.h"
@implementation AboutViewController
@synthesize versionLabel;

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)didReceiveMemoryWarning
{
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc that aren't in use.
}

#pragma mark - View lifecycle

- (void)viewDidLoad
{
    [super viewDidLoad];
    self.versionLabel.font = [UIFont systemFontOfSize:20];
    self.versionLabel.text = kVersion;
    // Do any additional setup after loading the view from its nib.
}

- (void)viewDidUnload
{
    [self setVersionLabel:nil];
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

- (IBAction)goToTecentMicroBlog:(id)sender  //保合宝的腾讯微博页面
{
    NSURL *url = [[NSURL alloc] initWithString:@"http://t.qq.com/bbest100"];
    [[UIApplication sharedApplication] openURL:url];
    [url release];
}

- (IBAction)goToSinaBlog:(id)sender     //保合宝的新浪微博页面
{
    NSURL *url = [[NSURL alloc] initWithString:@"http://weibo.cn/baohebao"];
    [[UIApplication sharedApplication] openURL:url];
    [url release];
}


- (void)dealloc {
    [versionLabel release];
    [super dealloc];
}
@end
